All Questions
Tagged with custom-taxonomyplugin-development
93 questions
0votes
1answer
30views
How to Display News in a Timeline with Headline, Category, and Time?
I am working on a project where I need to display news articles in a timeline (Latest news). I want each news item to be structured as follows: • The title of the news article • Category (e.g., “...
1vote
1answer
169views
How do I change the Go To Categories link in the term_updated_messages
I have a custom taxonomy titled "shows". When a show gets updated it displays a message to the user followed by a link. I have already changed the message by using add_filter('...
0votes
1answer
2kviews
Query posts by custom taxonomy slug in WP REST API?
I'm trying to do the above-mentioned; and came across this and this. Is it still the case that you have to query by term ID using the REST API, and there's no built-in way to query posts via the WP ...
0votes
1answer
116views
Dynamically insert code to custom post type loop
I need to display post from custom post type name "film", from a specific taxonomy "Horror." Everything work fine when I type the taxonomy directly like this: <?php $blog = ...
0votes
1answer
51views
Custom post type category link redirecting to 404 page
I have created a custom post type. There is no issue with post and it's working. I am getting issue in the catgory links. When i click on the Category name it's redirecting on 404 page I am getting ...
0votes
1answer
149views
Show current custom taxonomy
I have a custom post and custom taxonomy my taxonomy is called "department" i have my loop showing my custom post, I am trying to also show all the departments (custom taxonomy) that my ...
0votes
1answer
34views
How to show Custom Post Types under Taxonomy in a new WordPress page template?
I have created this plugin with Quiz as CPT and subjects as Taxonomy. I need to show the CPTs under the Taxonomy in a list type. But, for now reason it's not showing here are the code - Register quiz ...
0votes
0answers
127views
Add default custom taxonomy to plugin activation
I have a plugin created with boilerplate from this site: https://wppb.me/ And I would like to understand how to automatically add 4 entries in the custom taxonomy category that I have already ...
0votes
1answer
60views
Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
So here's an odd one. I have custom taxonomies that show on the admin menu of both post types they're associated with, but only one of the post types shows them in its edit menu. (Over on the side of ...
0votes
1answer
76views
Error 404 change permalink term custom term taxonomy
I'm trying to change the permalink structure of the terms for a custom taxonomy, but it's returning page 404. I want the URL to be: example.com/products/category/category-name. I tried to use the ...
0votes
1answer
33views
How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
So my question is where i can place the code to display the taxonomy? i found this code `function get_taxonomies( $args = array(), $output = 'names', $operator = 'and' ) { global $wp_taxonomies; ...
1vote
1answer
147views
$_FILES empty on created_{taxonomy} and create_{taxonomy} yet is is not on edit_{taxonomy}
been struggling with a bug. On created_{taxonomy} hook yet in edited_{taxonomy} hook works and upload the expected file with no issues. As per the following code I added custom field type along with ...
0votes
0answers
34views
Changing CPT permalink
I have a CPT named rad. I have the following code to change the permalink from "site.com/rad/post" to "site.com/category/subcategory/post". function remove_cpt_slug( $post_link, $...
1vote
1answer
2kviews
Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
I am currently translating all of my plugins with loco translate. This is working fine on frontend and in all metaboxes in the backend, but not in the wp-admin menu: The red circled word should be in ...
0votes
1answer
704views
I have a random letter appearing before my content. Where to start looking for the cause?
Something weird is happening. I'm running Wordpress on a local DesktopServer. Suddenly, as in today, the letter "d" has started appearing before my content is random places. In short, it appears on ...